﻿<Window x:Class="XbdSoft.WPFVersion.LoginWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" ResizeMode="NoResize" FontSize="12"
        xmlns:effect="clr-namespace:XbdSoft.WPFVersion.Effect" WindowStartupLocation="CenterScreen"
        effect:GlassEffect.IsEnabled="True" Loaded="Window_Loaded" Icon="/Images/favicon.ico"
        Title="登录" Height="230" Width="400">
    <Grid Name="layoutRoot" Margin="0">
        <Grid VerticalAlignment="Stretch" Name="LoginGrid" Visibility="Collapsed" HorizontalAlignment="Stretch" Background="Transparent" >
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="68,56,0,0" Text="用户名：" VerticalAlignment="Top" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="68,85,0,0"  Text="密  码：" VerticalAlignment="Top" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="122,56,0,0" Name="UserNameBox" VerticalAlignment="Top" Width="150" />
            <PasswordBox Height="23" HorizontalAlignment="Left" Margin="122,85,0,0" Name="PasswordBox" VerticalAlignment="Top" Width="150" />
            <Button Content="登录"  Click="LoginButton_Click" Height="23" HorizontalAlignment="Left" Margin="122,143,0,0" Name="LoginButton" VerticalAlignment="Top" Width="75" >
                <Button.Background>
                    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                        <GradientStop Color="#FFCDCDCD" Offset="0"/>
                        <GradientStop Color="#FFEBEBEB" Offset="0.004"/>
                        <GradientStop Color="#FFEFA54A" Offset="0.543"/>
                        <GradientStop Color="#FFF9D6AA" Offset="1"/>
                        <GradientStop Color="#FFF9D6AA"/>
                    </LinearGradientBrush>
                </Button.Background>
            </Button>
            <Button Content="退出" Click="CancelButton_Click" Height="23" HorizontalAlignment="Left" Margin="222,143,0,0" Name="CancelButton" VerticalAlignment="Top" Width="75" >
                <Button.Background>
                    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                        <GradientStop Color="#FFCDCDCD" Offset="0"/>
                        <GradientStop Color="#FFEBEBEB" Offset="0.004"/>
                        <GradientStop Color="#FFEFA54A" Offset="0.543"/>
                        <GradientStop Color="#FFF9D6AA" Offset="1"/>
                        <GradientStop Color="#FFF9D6AA"/>
                    </LinearGradientBrush>
                </Button.Background>
            </Button>
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="295,56,0,0" Name="textBlock1" VerticalAlignment="Top">
            <Hyperlink   Click="RegisterHyperlink_Click">注册新用户</Hyperlink>
            </TextBlock>
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="295,85,0,0" Name="textBlock2" VerticalAlignment="Top" >
            <Hyperlink Click="ForgotPasswordHyperlink_Click">忘记密码</Hyperlink>
            </TextBlock>
            <CheckBox Content="记住密码" IsChecked="True" Height="16" HorizontalAlignment="Left" Margin="122,121,0,0" Name="RememberPasswordCheckBox" VerticalAlignment="Top" />
            <CheckBox Content="自动登录" Height="16" HorizontalAlignment="Left" Margin="222,121,0,0" Name="AutoLoginCheckBox" VerticalAlignment="Top" />
        </Grid>
       
        <Border  VerticalAlignment="Stretch" Name="MaskBorder" HorizontalAlignment="Stretch" Background="Transparent" Panel.ZIndex="100">
            <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center">正在检查网络和版本更新... ...</TextBlock>
        </Border>
    </Grid>
</Window>
